<template>
  <div class="dashboard-container">
    <el-row type="flex" justify="space-between">
      <el-col>
        <el-card :span="11">
          <div class="headInfoTip">
            <p class="firstChild">早上好</p>
          </div>
        </el-card>
      </el-col>
      <el-col :span="11">
        <el-card>
          <div>
            <Clock />
          </div>
        </el-card>
      </el-col>

    </el-row>
    <el-row type="flex" justify="space-between">
      <el-col :span="13" style="padding-right:26px">
        <el-card class="box-card">
          <div slot="header" class="header">
            <span>价格数量分布图</span>
          </div>
          <BarEchart />
        </el-card>
      </el-col>
      <el-col :span="11">
        <el-card class="box-card">
          <div slot="header" class="header">
            <span>房产数量比例</span>
          </div>
          <!-- 放置雷达图 -->
          <PieEchart />
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script >

import { mapGetters } from 'vuex'
import PieEchart from './componeennts/pieEchart.vue'
import BarEchart from './componeennts/barEchart.vue'
import Clock from './componeennts/clock.vue'

export default {
  name: 'Dashboard',
  components: {
    BarEchart,
    PieEchart,
    Clock

  },

  computed: {
    ...mapGetters([
      'name'
    ])
  }

}

</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

</style>

